package service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mybatis.mapper.UserMapper;
import com.mybatis.po.MyUser;
@Service
public class UserServiceImpl implements UserService{
	@Autowired
	private UserMapper userMapper;
	@Override
	public List<MyUser> selectAllUser() {
		return userMapper.selectAllUser();
	}
	@Override
	public int addAUser(MyUser myUser) {
		return userMapper.addAUser(myUser);
	}
	@Override
	public int updateAUser(MyUser myUser) {
		return userMapper.updateAUser(myUser);
	}
	@Override
	public int deleteAUser(int id) {
		return userMapper.deleteAUser(id);
	}
	@Override
	public MyUser getOne(int id) {
		return userMapper.getOne(id);
	}
}
